<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$router->add($config->application->backendUri . '/user', array(
    'module' => 'backend_user',
    'controller' => 'user',
    'action' => 'index',
));

$router->add($config->application->backendUri . '/user/:controller/:action', array(
    'module' => 'backend_user',
    'controller' => 1,
    'action' => 2,
));
$router->add($config->application->backendUri . '/user/:controller/:action/:int', array(
    'module' => 'backend_user',
    'controller' => 1,
    'action'  => 2,
    'id' => 3
));

/*----------------Routes_PERMISSION_RESOURCE---------------*/
$router->add($config->application->backendUri . '/user/permission-resources', array(
    'module' => 'backend_user',
    'controller' => 'permission-resources',
    'action' => 'index',
));
/*----------------Routes_PERMISSION_RESOURCE---------------*/

/*----------------Routes_PERMISSION_ACTION---------------*/
$router->add($config->application->backendUri . '/user/permission-actions', array(
    'module' => 'backend_user',
    'controller' => 'permission-actions',
    'action' => 'index',
));
/*----------------Routes_PERMISSION_ACTION---------------*/

/*----------------Routes_PERMISSION_ACTION---------------*/
$router->add($config->application->backendUri . '/user/user-groups', array(
    'module' => 'backend_user',
    'controller' => 'user-groups',
    'action' => 'index',
));
/*----------------Routes_PERMISSION_ACTION---------------*/

/*----------------Routes_PROFILE---------------*/
$router->add($config->application->backendUri . '/user/profiles', array(
    'module' => 'backend_user',
    'controller' => 'profiles',
    'action' => 'index',
));
/*----------------Routes_PROFILE---------------*/

/*----------------Routes_LOGIN---------------*/

$router->add($config->application->backendUri . '/login', array(
    'module' => 'backend_user',
    'controller' => 'login',
    'action' => 'index',
));

$router->add($config->application->backendUri . '/login:action', array(
    'module' => 'backend_user',
    'controller' => 'login',
    'action' => 1,
));

$router->add($config->application->backendUri . '/login/:action/:int', array(
    'module' => 'backend_user',
    'controller' => 'video-group',
    'action'  => 1,
    'id' => 2
));


/*----------------Routes_LOGIN---------------*/

$router->add($config->application->backendUri . '/user/logout', array(
    'module' => 'backend_user',
    'controller' => 'user',
    'action' => 'logout',
));
